package com.oocl.webmvc.service.impl;

import java.util.List;

import com.oocl.webmvc.db.CustomerDB;
import com.oocl.webmvc.pojo.Customer;
import com.oocl.webmvc.service.CustomerService;

/**
 * @description: 
 * @author  XIEMI2
 * @date Aug 7, 2017 4:23:28 PM
 * @version 1.0
 */
public class CustomerServiceImpl implements CustomerService{

	@Override
	public Customer addCustomer(Customer cust) {
		CustomerDB.getCustomers().add(cust);
		return cust;
	}

	@Override
	public List<Customer> findAllCustomers() {
		return CustomerDB.getCustomers();
	}

}


